# -*- coding:utf-8 -*-

from google.appengine.ext import db

class Banche(db.Model):
    '''字段信息
    linenum - 班车是第几线
    chepaihao - 车牌号
    sijidianhua - 司机电话
    chezhangdianhua - 车长电话
    chexing - 车型
    zhandianlist - 站点列表
    beizhu - 备注
    '''
    linenum = db.StringProperty(multiline=False)
    chepaihao = db.StringProperty(multiline=False)
    sijidianhua = db.StringProperty(multiline=False)
    chezhangdianhua = db.StringProperty(multiline=False)
    chexing = db.StringProperty(multiline=False)
    zhandianlist = db.ListProperty(db.Key)
    beizhu = db.StringProperty(multiline=False)
    linecolor = db.StringProperty(multiline=False)
    icon = db.StringProperty(multiline=False)

class Zhandian(db.Model):
    '''字段信息
    zhandianmingcheng - 站点名称
    zaobanshijian - 早班时间
    beizhu - 备注
    '''
    zhandianmingcheng = db.StringProperty(multiline=False)
    zaobanshijian = db.StringProperty(multiline=False)
    beizhu = db.StringProperty(multiline=False)
    lng = db.StringProperty(multiline=False)
    lat = db.StringProperty(multiline=False)
    zaoban = db.BooleanProperty()
    wanban = db.BooleanProperty()
